/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.sys.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.sys.comment.model.ShopEmployeeRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户与角色对应关系
 * @date 2021-03-01 17:42:09
 */
public interface ShopEmployeeRoleMapper extends BaseMapper<ShopEmployeeRole> {

    /**
     * 根据角色ID数组，批量删除
     */
    int deleteBatch(@Param("roleIds") Long[] roleIds);

    int insertUserAndUserRole(@Param("employeeId") Long employeeId, @Param("roleIdList") List<Long> roleIdList);

    int deleteByEmployeeId(@Param("employeeId") Long employeeId);
}
